package org.smarthings.things.commons.rest;

import java.net.URI;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlType(name = "paginatedColleaction")
@XmlRootElement(name = "paginatedColleaction")
public class PaginatedCollectionResource extends BasicResource {
	
	private int offset;
	private int limit;
	private URI first;
	private URI previous;
	private URI next;
	private URI last;
	
	@XmlElement(required = false, name = "offset")
	public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = offset;
	}

	@XmlElement(required = false, name = "limit")
	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	@XmlElement(required = false, name = "first")
	public URI getFirst() {
		return first;
	}

	public void setFirst(URI first) {
		this.first = first;
	}

	@XmlElement(required = false, name = "previous")
	public URI getPrevious() {
		return previous;
	}

	public void setPrevious(URI previous) {
		this.previous = previous;
	}

	@XmlElement(required = false, name = "next")
	public URI getNext() {
		return next;
	}

	public void setNext(URI next) {
		this.next = next;
	}

	@XmlElement(required = false, name = "last")
	public URI getLast() {
		return last;
	}

	public void setLast(URI last) {
		this.last = last;
	}

}
